package com.vdong.common.oauth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;


@SpringBootApplication(scanBasePackages={"com.vdong.common.oauth.**"})
@PropertySource(value = "classpath:repository.properties")
public class Start{
    public static void main(String[] args) {
        SpringApplication.run(Start.class, args);
    }
}
@Configuration
class MyWebMvcConfigurerAdapter extends WebMvcConfigurerAdapter {

    /**
     * 配置静态访问资源
     * @param registry
     */
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/Hx1WYnQmkb.txt").addResourceLocations("classpath:/Hx1WYnQmkb.txt");
    }

}